package com.lottery.im.api.result.entity.msg_bulletin;

import android.text.TextUtils;

public class MessageDetails{
  private String messageType;
  private String messageTitle;
  private String message;
  private String createTime;

  public String getMessageType() {
    return messageType;
  }

  public void setMessageType(String messageType) {
    this.messageType = messageType;
  }

  public String getMessageTitle() {
    return messageTitle;
  }

  public void setMessageTitle(String messageTitle) {
    this.messageTitle = messageTitle;
  }

  public String getMessage() {
    return message;
  }

  public void setMessage(String message) {
    this.message = message;
  }

  public String getCreateTime() {
    if(!TextUtils.isEmpty(createTime)&&createTime.length()>=8){
      String sb = createTime.substring(0, 8);
      StringBuilder builder = new StringBuilder(sb);
      builder.insert(4,"-").insert(7,"-");
      return builder.toString();
    }else{
      return createTime;
    }
  }

  public void setCreateTime(String createTime) {
    this.createTime = createTime;
  }
}
